<?php
// 设置时区
ini_set('date.timezone','Etc/GMT-8');
// 屏蔽IP
$disallow_ip=array('60.28.205.234','60.28.194.197','60.28.205.237','218.75.46.50','219.234.88.97', '59.40.182.189');
if (in_array(getip(), $disallow_ip)){
	exit('sorry');
}

session_start();
ini_set('display_errors', '1');


// ----- 站点基本配置
$CFG['website'] = array(
	'url' => 'http://blog.rickyxu.info/',
	'page_title' => 'Ricky Online',
	'description' => '别人笑我太疯癫，我笑他人看不穿。不见五陵豪杰墓，无花无酒锄作田。',
);


// ---- 数据库设置
$CFG['db']['host']='localhost';
$CFG['db']['user']='root';
$CFG['db']['pwd']='000000';
$CFG['db']['name']='blog';
$CFG['db']['port']='';
$CFG['db']['err_log'] = 1; //1: 保存错误sql日志 0: 不保存
$CFG['db']['err_log_file'] = 'log/mysql_err.txt';

// ----- 错误处理设置
$CFG['err']['mode'] = 0; //错误信息显示方式: 0: 默认调试信息 , 1: 转到$CFG['err']['page'] , 2: 不显示错误
$CFG['err']['page'] = 'error.php';
$CFG['err']['msg'] = 'OH NO!你访问的页面好像出现了一些故障！';


// ----- 文章分类设置
$CFG['category'] = array(
	1 => '技术积累',
	2 => '共同关注',
	3 => '生活杂记',
	4 => '一点心得'
);
?>